﻿/// <reference name="MicrosoftAjax.js"/>

Type.registerNamespace("GreeNova");

GreeNova.Globals = new function() {
    this._rootUrl = undefined;

    this.set_rootUrl = function(url) {
        this._rootUrl = url;
    };

    this.get_rootUrl = function() {
        return this._rootUrl;
    };

    this.resolveUrl = function(url) {
        if (url && url.length >= 1 && url.charAt(1) === '/')
            url = url.substr(1);
        return this.get_rootUrl() + (url || '');
    };
};
